home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1996 #14
/
Monster Media No. 14 (April 1996) (Monster Media, Inc.).ISO
/
netmail
/
mplus400.zip
/
400-TXT.ZIP
/
RBBSQWK.BAT
< prev
Wrap
DOS Batch File
|
1996-01-26
|
2KB
|
44 lines
:
: RBBSQWK.BAT (Optional) - Called by Mail Manager +Plus+, to prepare QWK packet
: for downloading.
:
: If you allow your users to choose archive methods (via MMGRx.ARL), Mail
: Manager +Plus+ will have already created the .QWK by the time this batch
: file is executed, and In fact you could speed up execution time by deleting
: this file, eliminating an unneeded shell to it.
:
: If you have additional files that you would like to include in your users
: QWK packets, you can modify this file to add them to the packet.
:
: %1 = base file name
: %2 = archive method ZIP, ARJ, LZH, or ARC
: %3 = node number (not used in this example).
:
: Last updated for distribution 01/22/96 - Makai Software
:
: Compress the .QWK packet if it doesn't already exist.
: ---------------------------------------------------------------------------
if exist %1.qwk GOTO END
if (%2)==(ZIP) pkzip -m %1.qwk *.dat *.ndx ???log door.id news blt-*.*
if (%2)==(ARJ) arj m %1.qwk *.dat *.ndx ???log door.id news blt-*.*
if (%2)==(LZH) lha a -m %1.qwk *.dat *.ndx ???log door.id news blt-*.*
if (%2)==(ARC) GOTO ARC
GOTO END
:ARC
: ---------------------------------------------------------------------------
: The old PKARC archiver does not allow you to specify files on the command
: line that don't physically exist. So for this archive method, we'll do a
: check against each individual component of the package prior to attempting
: to archive it. The "-oc" in the command line specifies "old compatibility",
: the "Crunch" method.
: ----------------------------------------------------------------------------
if exist *.dat pkarc -oc m %1.qwk *.dat
if exist *.ndx pkarc -oc m %1.qwk *.ndx
if exist ???log pkarc -oc m %1.qwk ???log
if exist door.id pkarc -oc m %1.qwk door.id
if exist news pkarc -oc m %1.qwk news
if exist blt-*.* pkarc -oc m %1.qwk blt-*.*
:END